<!DOCTYPE html>
<html>

<head>
    <title>Qdata用户管理界面</title>
    <meta charset="UTF-8">
    <meta http-equiv='content-language' content='zh-cn'>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./css/index.css">
    <link rel="stylesheet" href="./css/loaders.css">
    <link rel="stylesheet" href="./css/popbox.css">
    <script src="https://www.codekpy.site/cdn/jquery.min.js"></script>
</head>

<body style='background-color:grey'>
    <div class="spinner">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
    <nav id="nav" style="background-color: #46D3FF;">
        <ul id="nav_list">
            <li><a id="nav_home" onclick="home()">
                    <h3 style="margin-top: 0px;margin-bottom: 0px;">Qdata</h3>
                </a></li>
        </ul>
    </nav>
    <div id="home">
        <div id="menmbers">
            <h3>我的数据表</h3>
            <font style="color: #FF4653;padding: 500px 40%;" size="1000">
            <?php
                echo $table_number."个";
            ?>
            </font><br><br>
            
            <script>
                function go_url(){
                    //window.open('<?php require("./config.php") ;echo $domain_url ?>/index.php?mode=new');
                    window.location.replace('<?php require("./config.php") ;echo $domain_url ?>/index.php?mode=new');
                }
            </script>
            <button onclick="go_url()">新增数据表</button>
        </div>
        <div id="about_us" style='overflow-y:scroll;'>
            
                <h3>数据表</h3>
                <?php  
                    $result_table = mysqli_query($con,"SELECT * FROM qdata_table WHERE email='".$_COOKIE["people_email"]."'");
                    while($row_table = mysqli_fetch_array($result_table)){
                        echo '数据表ID：'.$row_table["id"]." 数据表秘钥：".$row_table["token"]."<button onclick='window.location.replace(\"".$domain_url.'?mode=del&id='.$row_table['id']."\")'>删除</button><br>";
                    }
                ?>
           
        </div>
    </div>
    <div class="footer" style="height:170px">
        <div class="talk">
            <p>&nbsp;&nbsp;QQ用户交流群：<a href="https://jq.qq.com/?_wv=1027&k=GxaBmpUW">607440618</a><p>
            <p onclick='popBox(1)'>开发人员</p>
            <p onclick='popBox(2)'>使用说明（使用文档）</p>
            <p>版本:0.7.1</p>
        </div>
    </div>
    <div id="popLayer_1" class="popLayer"></div>
    <div id="popBox_1" class="popBox">
        <div class="close">
            <button onclick="closeBox(1);">╳</button>
        </div>
        <div class="content">前端:CodeKpy<br>后端:codekpy<br>赞助:鹈</div>
    </div>
  <div id="popBox_2" class="popBox" style="width:30%">
        <div class="close">
            <button onclick="closeBox(2);">╳</button>
        </div>
        <div class="content" style="overflow-y:scroll;height:170px;background-color:white">请求地址:https://qdata.space/api.php
请求方式: GET/POST
设置键的值:
参数:
table_id:      数据表的ID<br>
mode :set    操作模式<br>
name:          键名<br>
value:           键的值<br>
key: 当前分钟，数据表ID，数据表密钥 拼接起来的字符串进行sha256运算的值<br>
无返回值<br>
获取键的值:<br>
参数:<br>
table_id:      数据表的ID<br>
mode :read 操作模式<br>
name:          键名<br>
key: 当前分钟，数据表ID，数据表密钥 拼接起来的字符串进行sha256运算的值
<br>执行成功返回:<br>
{"info":键的值, "code":200}<br>
删除键:<br>
参数:<br>
table_id:      数据表的ID<br>
mode:del    操作模式<br>
name:          键名<br>
key: 当前分钟，数据表ID，数据表密钥 拼接起来的字符串进行sha256运算的值
<br>执行成功返回:<br>
{"info":"Success", "code":200}</div>
    </div>
    <script src="./js/script.js"></script>
    <script src="./js/mouse_effects.js"></script>
</body>

</html>